Subsystem constructor 2
A creator for the Subsystem class. This class contains the necessary information about controlling the KINGSTAR library.
Namespace: IntervalZero.KINGSTAR.Local.Class
Assembly: IntervalZero.KINGSTAR.Local.Class (in IntervalZero.KINGSTAR.Local.dll) Version: 4.4.0.0
Syntax
public Subsystem(
int idealProcessor = 0,
int instance = 0,
int updateInterval = 50
)
Public Sub New(
Optional idealProcessor As Integer = 0,
Optional instance As Integer = 0,
Optional updateInterval As Integer = 50
)
Parameters
idealProcessor [optional]
Type: int
Configures which core the KINGSTAR Subsystem runs on. All threads of the Subsystem run on the given processor. Core Zero is always for Windows. Other cores can be assigned to the Subsystem depending on your settings. By default, IdealProcessor is set to zero, meaning KINGSTAR will use the ideal processor configured in the instance configuration table (Control Panel > Runtime Settings > General Settings). If the table lacks settings for the given instance, the Subsystem may run on any core available to RTX64. If you set it to another number, such as two, the Subsystem will take the Core Two.
instance [optional]
Type: int
Selects which KINGSTAR Runtime instance you want to use when you have Multiple Master Package. If you don't have the package, set it to zero (0); if you have the package, the valid instance should be: 0 <= instance <= 63. The instance can be set according to your needs, for example: if you have three instances and want to use the third one, set it to two (2).
updateInterval [optional]
Type: int
How long the Subsystem, axes, I/O modules and all other devices update their status. The default value is 50 milliseconds.
See also